<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<script type="text/javascript">
	function importAlarmExcel(){
		add('Excel导入', 'alarmWordController.do?goImplXls', "alarmWordList");
	}
	
	function exportAlarmExcel(){
		document.location.href = "template/word_template.xls";
	}
</script>
<div class="easyui-layout" fit="true">
	<div region="center" style="padding:1px;">
		<t:datagrid name="alarmWordList" title="警戒词"
			actionUrl="alarmWordController.do?datagrid" idField="id" fit="true"
			sortName="sxh">
			<t:dgCol title="编号" field="id" hidden="false"></t:dgCol>
			<t:dgCol title="词语" field="cy" width="300" query="true"></t:dgCol>
			<t:dgCol title="权重值" field="qzz" width="100"></t:dgCol>
			<t:dgCol title="操作" field="opt" width="100"></t:dgCol>
			<t:dgDelOpt title="删除" url="alarmWordController.do?del&id={id}" />
			<t:dgToolBar title="录入" icon="icon-add"
				url="alarmWordController.do?addorupdate" funname="add"></t:dgToolBar>
			<t:dgToolBar title="编辑" icon="icon-edit"
				url="alarmWordController.do?addorupdate" funname="update"></t:dgToolBar>
			<t:dgToolBar title="导入Excel" icon="icon-excel"	funname="importAlarmExcel"></t:dgToolBar>
			<t:dgToolBar title="Excel模板" icon="icon-excel"	funname="exportAlarmExcel"></t:dgToolBar>
		</t:datagrid>
	</div>
</div>